package com.lyf.viewapp.util;

import android.support.annotation.Nullable;
import android.view.View;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.lyf.viewapp.R;

import java.util.List;

/**
 * Created by lyf on 2018/4/18 12:48
 *
 * @author lyf
 * desc：跳转界面适配
 */
public class EnterRecyclerAdapter extends BaseQuickAdapter<EnterBean, EnterRecyclerAdapter.ViewHolder> {

    public EnterRecyclerAdapter(int layoutResId, @Nullable List<EnterBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(ViewHolder helper, EnterBean item) {
        helper.setText(R.id.main_item_name, item.getName());
    }

    public class ViewHolder extends BaseViewHolder{

        public ViewHolder(View view) {
            super(view);
        }
    }
}
